/-app
/-docs
/-docs/types
/-docs/types/text
/-docs/types/text/css
CssDocHandler.ts
/-docs/types/text/html
/-docs/types/text/js
/-docs/types/text/json
/-docs/types/text/less
/-docs/types/text/sass
/-docs/types/text/scrollerView
/-docs/types/text/scss
CodeMirror-ext.css
CodeMirrorDocHandler.ts
api.ts
load.ts
api.ts
listSubmodules.ts
load.ts
DocHost.ts
/-files
/-imports
/-imports/codemirror
codemirror.css
codemirror.js
codemirror.mihailik.js
codemirror.original.js
css-hint.js
css.js
htmlembedded.js
htmlmixed.js
javascript.js
sass.js
show-hint.css
show-hint.js
xml.js
/-imports/knockout
/-imports/zip.js
/-persistence
/-typings ...
codemirror.addons.d.ts
codemirror.d.ts
knockout.d.ts
websql.d.ts
zip.d.ts
errors.js
functions.ts
index.html
try.js
92
1
declare module CodeMirror {
2
  
3
  interface CodeMirrorStatic {
4
    
5
    showHint(options: showHint.Options);
6
​
7
    
8
  }
9
​
10
  module showHint {
11
    
12
    interface Options {
13
      
14
      /**
15
       * A hinting function. It is possible to set the async property on a hinting function to true,
16
       * in which case it will be called with arguments (cm, callback, ?options),
17
       * and the completion interface will only be popped up when the hinting function calls the callback,
18
       * passing it the object holding the completions.
19
       */
20
      hint: Function;
21
​
22
      /**
23
       * Determines whether, when only a single completion is available, it is completed without showing the dialog.
24
       * Defaults to true.
25
       */
26
      completeSingle?: boolean;
27
​
28
      /**
29
       * Whether the pop - up should be horizontally aligned with the start of the word (true, default),
30
       * or with the cursor (false).
31
       */
32
      alignWithWord?: boolean;
33
​
34
      /**
35
       * When enabled (which is the default), the pop - up will close when the editor is unfocused.
36
       */
37
      closeOnUnfocus?: boolean;
38
​
39
      /**
40
       * Allows you to provide a custom key map of keys to be active when the pop - up is active.
41
       * The handlers will be called with an extra argument, a handle to the completion menu,
42
       * which has moveFocus(n), setFocus(n), pick(), and close() methods (see the source for details),
43
       * that can be used to change the focused element, pick the current element or close the menu.
44
       * Additionnaly menuSize() can give you access to the size of the current dropdown menu,
45
       * length give you the number of availlable completions,
46
       * and data give you full access to the completion returned by the hinting function.
47
       */
48
      customKeys?: any;
49
​
50
      /**
51
       * Like customKeys above, but the bindings will be added to the set of default bindings,
52
       * instead of replacing them.
53
       */
54
      extraKeys?: any;
55
​
56
    }
57
      
58
    interface CompletionResult {
59
      list: Completion[];
60
      from: CodeMirror.Pos;
61
      to: CodeMirror.Pos;
62
    }
6:4